<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" encoding="iso-8859-1"/>
<xsl:include href="settings.xsl"/>
<xsl:include href="convert.xsl"/>
<xsl:include href="header.xsl"/>

<xsl:param name="page_id" select="/page/page_id"/>

<xsl:template match="/">
<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"/>
		<title><xsl:value-of select="/page/header"/></title>
	</head>

	<xsl:choose>
		<xsl:when test="/page/theme = 1">
		
		<!-- frames -->
<frameset  rows="100,*" border="0"  framespacing="0" frameborder="no">
     <frame  src="header.asp" name="header" marginwidth="0" marginheight="0" noresize="no" scrolling="no" frameborder="0"/>
    <frameset  cols="210,*" border="0"  framespacing="0" frameborder="no">
        <frame name="lleftst" src="leftfr.asp" marginwidth="0" marginheight="0" noresize="no" scrolling="no" frameborder="0"/>
        <frameset  rows="*,100">
              <frame src="{$files_templates}/{/page/file_name}" name="ownpages"  marginwidth="0" marginheight="0" scrolling="auto" frameborder="0"/>
             <frame  src="footer.asp" name="footer" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"/>
        </frameset>
    </frameset>
</frameset>

		
	
		</xsl:when>
 		<xsl:otherwise>
		
		<frameset  rows="120,*,100" border="0"  framespacing="0" frameborder="no">
    <frame  src="header.asp" name="header" marginwidth="0" marginheight="0" noresize="no" scrolling="no" frameborder="0"/>
    <frameset  cols="13%,750,13%" border="0"  framespacing="0" frameborder="no">
        <frame name="" src="" marginwidth="0" marginheight="0" noresize="no" scrolling="no" frameborder="0"/>
        <frame src="{$files_templates}/{/page/file_name}" name="ownpages"  marginwidth="0" marginheight="0" scrolling="auto" frameborder="0"/>
        <frame name="" src="" marginwidth="0" marginheight="0" noresize="no" scrolling="no" frameborder="0"/>
    </frameset>
    <frame  src="footer.asp" name="footer" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"/>
</frameset>
				
		</xsl:otherwise>
	</xsl:choose>
	
	<!-- frames -->


	

	<noframes>

		<body bgcolor="#ffffff">
			<p></p>
		</body>

	</noframes>

</html>

<!-- 	<html>
		<head>
			<title><xsl:value-of select="/page/header"/></title>
			<META><xsl:attribute name="description"><xsl:value-of select="/page/description" disable-output-escaping="yes"/></xsl:attribute></META>
			<META><xsl:attribute name="keywords"><xsl:value-of select="/page/keywords" disable-output-escaping="yes"/></xsl:attribute></META>
			<META NAME="authors" CONTENT="MLS Solutions"/>
			<meta name="revisit-after" content="2 days"/>
			<META NAME="robots" CONTENT="index, follow"/>
			<META NAME="distribution" CONTENT="GLOBAL"/>
			<META NAME="classification" CONTENT="Recreation"/>
			<META NAME="copyright" CONTENT="Copyright 2003 MLS Solutions"/>
			<META HTTP-EQUIV="reply-to" CONTENT="info@yachtcouncil.org"/>
			<link rel="stylesheet" href="include/main.css" type="text/css"/>
		</head>
		<body link="{$color_main_first}" vlink="{$color_main_first}" alink="{$color_main_first}" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" text="#ffffff" bgcolor="#FFFFFF">
			<xsl:choose>
			<xsl:when test="//page/isNeedMenu=1">
			<xsl:call-template name="header"/>
			</xsl:when>
			<xsl:otherwise>
			<xsl:apply-templates select="page"/>
			</xsl:otherwise>
			</xsl:choose>
		</body>
	</html> -->
</xsl:template>

</xsl:stylesheet>
